<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<body>
		<script type="text/javascript">
			var id = 1;

			function next() {
				id = (id + 1) % 7;
				document.getElementById("image").src = './img/' + id + '.jpg'; //动态设定src  
				console.log(id);
			}
		</script>
		<img id="image" width=1250 height=900 onclick='next()' src="../img/index/bj.png" />
	</body>

</html>